package com.gmail.avereshchaga.tools;

import java.util.Date;
import java.util.Random;

/**
 *
 * @author <a href="mailto:avereshchaga@gmail.com">Vereshchaga Alexey</a>
 */
public class RandomGeneration {

    private Random generator = new Random(new Date().getTime());

    /**
     * @return num - random number;
     */
    public Long getRandom() {
        Long num = generator.nextLong();
        if (num < 0) {
            num = num * -1;
        }
        return num;
    }
}
